/*
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2022-12-02 16:01:24
 * @LastEditors: CNN 969682281@qq.com
 * @LastEditTime: 2023-09-11 15:32:27
 * @FilePath: \mould\src\views\pages\Supervision\regexDetail.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

export default {
    formObj: [{
            input: true, //是input
            label: "生产任务单号", //字段
            prop: "F_ProduceTaskNumber", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "工程名称", //字段
            prop: "F_EngineeringName", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "生产时间", //字段
            prop: "F_DischargeDates", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        // {
        //     input: true, //是input
        //     label: "水泥品种", //字段
        //     prop: "fProducetasknumber", //字段名
        //     width: 12, //参考el-col
        //     disabled: true, //是否禁用
        // },
        // {
        //     input: true, //是input
        //     label: "工程部位", //字段
        //     prop: "fEngineeringname", //字段名
        //     width: 12, //参考el-col
        //     disabled: true, //是否禁用
        // },
        {
            input: true, //是input
            label: "工程部位", //字段
            prop: "F_EngineeringPartName", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        // {
        //     input: true, //是input
        //     label: "实际方量", //字段
        //     prop: "fActualcalculation", //字段名
        //     width: 12, //参考el-col
        //     disabled: true, //是否禁用
        // }, 
        {
            input: true, //是input
            label: "强度等级", //字段
            prop: "F_StrengthGrade", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        // {
        //     input: true, //是input
        //     label: "拌和时长（s）", //字段
        //     prop: "fMixupduration", //字段名
        //     width: 12, //参考el-col
        //     disabled: true, //是否禁用
        // }, {
        //     input: true, //是input
        //     label: "运输车牌号", //字段
        //     prop: "fTransportvehiclenumber", //字段名
        //     width: 12, //参考el-col
        //     disabled: true, //是否禁用
        // },
        // {
        //     input: true, //是input
        //     label: "水胶比", //字段
        //     prop: "fWaterbinderratio", //字段名
        //     width: 12, //参考el-col
        //     disabled: true, //是否禁用
        // }, {
        //     input: true, //是input
        //     label: "外加剂掺量（%）", //字段
        //     prop: "fAdditiveratio", //字段名
        //     width: 12, //参考el-col
        //     disabled: true, //是否禁用
        // },
        // {
        //     input: true, //是input
        //     label: "预警级别", //字段
        //     prop: "fWarninglevel", //字段名
        //     width: 12, //参考el-col
        //     disabled: true, //是否禁用

        // }, {
        //     input: true, //是input
        //     label: "出料时间", //字段
        //     prop: "fDischargedates", //字段名
        //     width: 12, //参考el-col
        //     disabled: true, //是否禁用
        // }


    ],
    formData: {

    },
    handleData: {
        fId: "", // 申请单fid //为空判断为新增
        fParentid: "", // 对应的超标记录fid
        fWarningcontent: "", // 预警内容
        fReason: "", // 问题原因
        fHandleway: "", // 处理方式
        fHandleresult: "", // 处理结果
        fHandledate: '',
        fHandledates: "", // 处理日期
        fHandleusername: '', // 处理人名称
        fHandlefile: '', // 处理附件id
        fFirstcheckresult: '', // 一级审核处理结果
        fFirstcheckopinion: '', // 一级审核处理意见
        fFirstcheckusername: '', // 一级审核处理人name
        fFirstcheckdates: "", // 一级审核处理日期
        fSecondcheckresult: "", // 二级审核处理结果
        fSecondcheckopinion: "", // 二级审核处理意见
        fSecondcheckusername: "", // 二级审核处理人name
        fSecondcheckdates: "", // 二级审核处理日期
        aduitStatus: null,
        userId: "", // 当前登录人id
        userName: "", // 当前登录人姓名
        recordfiles: [], // 删除文件id集合
    },
    handleObj: [{
            input: true, //是input
            label: "预警内容", //字段
            prop: "fWarningcontent", //字段名
            width: 24, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "问题原因", //字段
            prop: "fReason", //字段名
            width: 24, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "处理方式", //字段
            prop: "fHandleway", //字段名
            width: 24, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "处置结果", //字段
            prop: "fHandleresult", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        }, {
            input: true, //是input
            label: "处理日期", //字段
            prop: "fHandledates", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "处理人", //字段
            prop: "fHandleusername", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        {
            label: "附件", //字段
            prop: "fHandlefile", //字段名
            width: 24, //参考el-col
            disabled: true, //是否禁用
            upload: true,
            uploadSelect: false,
            uploadObj: {
                fileType: "2001",
                limit: 8, //上传长度限制
                hideUpload: false, //是否隐藏上传框
            },
        }

    ],
    handleObjs: [{
            input: true, //是input
            label: "预警内容", //字段
            prop: "fWarningcontent", //字段名
            width: 24, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "问题原因", //字段
            prop: "fReason", //字段名
            width: 24, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                tigger: ['blur', 'change'],
                message: '问题原因不能为空'
            }]
        },
        {
            input: true, //是input
            // select: true, //是input
            label: "处理方式", //字段
            prop: "fHandleway", //字段名
            // placeholder: "请选择",
            width: 24, //参考el-col
            disabled: false, //是否禁用
            // options: [],
            rules: [{
                required: true,
                message: '请选择处理方式'
            }] //验证
        },
        {
            selects: true, //是input
            label: "处置结果", //字段
            prop: "fHandleresult", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            options: [{
                value: '留用',
                label: '留用'
            }, {
                value: '废弃',
                label: '废弃'
            }, {
                value: '降级',
                label: '降级'
            }, {
                value: '其他',
                label: '其他'
            }],
            rules: [{
                required: true,
                message: '请选择处置结果'
            }] //验证
        }, {
            datePicker: true, //是input
            label: "处理日期", //字段
            prop: "fHandledates", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '请选择处理日期'
            }] //验证
        },
        {
            input: true, //是input
            label: "处理人", //字段
            prop: "fHandleusername", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '处理人不能为空'
            }] //验证
        },

        {

            label: "附件", //字段
            prop: "fHandlefile", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            upload: true,
            uploadSelect: true,
            uploadObj: {
                fileType: "2001",
                limit: 8, //上传长度限制
                hideUpload: false, //是否隐藏上传框
            },
        },
    ],
    handleObjs1: [{
            input: true, //是input
            label: "预警内容", //字段
            prop: "fWarningcontent", //字段名
            width: 24, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "问题原因", //字段
            prop: "fReason", //字段名
            width: 24, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '问题原因不能为空'
            }]
        },
        {
            input: true, //是input
            // select: true, //是input
            label: "处理方式", //字段
            prop: "fHandleway", //字段名
            // placeholder: "请选择",
            width: 24, //参考el-col
            disabled: false, //是否禁用
            // options: [],
            rules: [{
                required: true,
                message: '请选择处理方式'
            }] //验证
        },
        {
            selects: true, //是input
            label: "处置结果", //字段
            prop: "fHandleresult", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            options: [{
                value: '留用',
                label: '留用'
            }, {
                value: '废弃',
                label: '废弃'
            }, {
                value: '降级',
                label: '降级'
            }, {
                value: '其他',
                label: '其他'
            }],
            rules: [{
                required: true,
                message: '请选择处置结果'
            }] //验证
        }, {
            datePicker: true, //是input
            label: "处理日期", //字段
            prop: "fHandledates", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '请选择处理日期'
            }] //验证
        },
        {
            input: true, //是input
            label: "处理人", //字段
            prop: "fHandleusername", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '处理人不能为空'
            }] //验证
        },

        {

            label: "附件", //字段
            prop: "fHandlefile", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            upload: true,
            uploadSelect: true,
            uploadObj: {
                fileType: "2001",
                limit: 8, //上传长度限制
                hideUpload: false, //是否隐藏上传框
            },
        },
    ],
    processObj: [{
            input: true, //是input
            label: "处理结果", //字段
            prop: "fFirstcheckresult", //字段名
            width: 24, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "处理人", //字段
            prop: "fFirstcheckusername", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "处理日期", //字段
            prop: "fFirstcheckdates", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "处理意见", //字段
            prop: "fFirstcheckopinion", //字段名
            width: 24, //参考el-col
            disabled: true, //是否禁用
        },

    ],
    processObjs: [{
            selects: true, //是input
            label: "处理结果", //字段
            prop: "fFirstcheckresult", //字段名
            options: [{
                value: '同意',
                label: '同意'
            }, {
                value: '不同意',
                label: '不同意'
            }],
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '处理结果不能为空'
            }] //验证
        },

        {
            input: true, //是input
            label: "处理人", //字段
            prop: "fFirstcheckusername", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '处理人不能为空'
            }] //验证
        },
        {
            datePicker: true, //是input
            label: "处理日期", //字段
            prop: "fFirstcheckdates", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '请选择处理日期'
            }] //验证
        }, {
            input: true, //是input
            label: "处理意见", //字段
            prop: "fFirstcheckopinion", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用

        },

    ],
    processObjs1: [{
            selects: true, //是input
            label: "处理结果", //字段
            prop: "fFirstcheckresult", //字段名
            options: [{
                value: '同意',
                label: '同意'
            }, {
                value: '不同意',
                label: '不同意'
            }],
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '处理结果不能为空'
            }] //验证
        },

        {
            input: true, //是input
            label: "处理人", //字段
            prop: "fFirstcheckusername", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '处理人不能为空'
            }] //验证
        },
        {
            datePicker: true, //是input
            label: "处理日期", //字段
            prop: "fFirstcheckdates", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '请选择处理日期'
            }] //验证
        }, {
            input: true, //是input
            label: "处理意见", //字段
            prop: "fFirstcheckopinion", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用

        },

    ],
    examineObj: [{
            input: true, //是input
            label: "处理结果", //字段
            prop: "fSecondcheckresult", //字段名
            width: 24, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "处理人", //字段
            prop: "fSecondcheckusername", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "处理日期", //字段
            prop: "fSecondcheckdates", //字段名
            width: 12, //参考el-col
            disabled: true, //是否禁用
        },
        {
            input: true, //是input
            label: "处理意见", //字段
            prop: "fSecondcheckopinion", //字段名
            width: 24, //参考el-col
            disabled: true, //是否禁用
        },

    ],
    examineObjs: [{
            selects: true, //是input
            label: "处理结果", //字段
            prop: "fSecondcheckresult", //字段名
            options: [{
                value: '同意',
                label: '同意'
            }, {
                value: '不同意',
                label: '不同意'
            }],
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '处理结果不能为空'
            }] //验证
        },

        {
            input: true, //是input
            label: "处理人", //字段
            prop: "fSecondcheckusername", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '处理人不能为空'
            }] //验证
        },
        {
            datePicker: true, //是input
            label: "处理日期", //字段
            prop: "fSecondcheckdates", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '请选择处理日期'
            }] //验证
        }, {
            input: true, //是input
            label: "处理意见", //字段
            prop: "fSecondcheckopinion", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用

        },

    ],
    examineObjs1: [{
            selects: true, //是input
            label: "处理结果", //字段
            prop: "fSecondcheckresult", //字段名
            options: [{
                value: '同意',
                label: '同意'
            }, {
                value: '不同意',
                label: '不同意'
            }],
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '处理结果不能为空'
            }] //验证
        },

        {
            input: true, //是input
            label: "处理人", //字段
            prop: "fSecondcheckusername", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '处理人不能为空'
            }] //验证
        },
        {
            datePicker: true, //是input
            label: "处理日期", //字段
            prop: "fSecondcheckdates", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用
            rules: [{
                required: true,
                message: '请选择处理日期'
            }] //验证
        }, {
            input: true, //是input
            label: "处理意见", //字段
            prop: "fSecondcheckopinion", //字段名
            width: 12, //参考el-col
            disabled: false, //是否禁用

        },

    ],


    strengthGradeDataList: [{
        fItemName: "强度等级",
        fItemValue: "",
    }, {
        fItemName: "C10",
        fItemValue: "C10",
    }, {
        fItemName: "C15",
        fItemValue: "C15",
    }, {
        fItemName: "C20",
        fItemValue: "C20",
    }, {
        fItemName: "C25",
        fItemValue: "C25",
    }, {
        fItemName: "C30",
        fItemValue: "C30",
    }, {
        fItemName: "C35",
        fItemValue: "C35",
    }, {
        fItemName: "C40",
        fItemValue: "C40",
    }, {
        fItemName: "C45",
        fItemValue: "C45",
    }, {
        fItemName: "C50",
        fItemValue: "C50",
    }, {
        fItemName: "C55",
        fItemValue: "C55",
    }, {
        fItemName: "C60",
        fItemValue: "C60",
    }, {
        fItemName: "C65",
        fItemValue: "C65",
    }, {
        fItemName: "C70",
        fItemValue: "C70",
    }, {
        fItemName: "C75",
        fItemValue: "C75",
    }, {
        fItemName: "C80",
        fItemValue: "C80",
    }, {
        fItemName: "C85",
        fItemValue: "C85",
    }, {
        fItemName: "其他",
        fItemValue: "其他",
    }],
    table_config: {
        imgKeyWord: "url",
        fileKeyWord: "url",
        fileName: "fFileName",
        dialogHeight: '',
        thead: [{
                label: '生产任务单号',
                prop: 'F_ProduceTaskNumber',

                minWidth: '150px',
                align: "left"

            },
            {
                label: '工程名称',
                prop: 'F_EngineeringName',
                minWidth: '130px',
                align: "left"
            },
            {
                label: '工程部位',
                prop: 'F_EngineeringPartName',
                minWidth: '180px',
                align: "left"
            },
            {
                label: '强度等级',
                prop: 'F_StrengthGrade',
                minWidth: '80px',
                align: "center"
            },
            {
                label: '水',
                prop: 'F_WaterActualValue',
                warnNum: "F_WaterWarningLevel",
                minWidth: '60px',
                align: "center"
            },
            {
                label: '水泥1',
                prop: 'F_Cement1ActualValue',
                warnNum: "F_Cement1WarningLevel",

                minWidth: '60px',
                align: "center"
            },
            {
                label: '骨料1',
                prop: 'F_Aggregate1ActualValue',
                warnNum: "F_Aggregate1WarningLevel",

                minWidth: '60px',
                align: "center"
            },
            {
                label: '骨料2',
                prop: 'F_Aggregate2ActualValue',
                warnNum: "F_Aggregate2WarningLevel",

                minWidth: '60px',
                align: "center"
            },
            {
                label: '骨料3',
                prop: 'F_Aggregate3ActualValue',
                warnNum: "F_Aggregate3WarningLevel",

                minWidth: '60px',
                align: "center"
            },
            {
                label: '骨料4',
                prop: 'F_Aggregate4ActualValue',
                warnNum: "F_Aggregate4WarningLevel",

                minWidth: '60px',
                align: "center"
            },
            {
                label: '骨料5',
                prop: 'F_Aggregate5ActualValue',
                warnNum: "F_Aggregate5WarningLevel",

                minWidth: '60px',
                align: "center"
            },
            {
                label: '粉煤灰',
                prop: 'F_FlyashActualValue',
                warnNum: "F_FlyashWarningLevel",

                minWidth: '60px',
                align: "center"
            },
            {
                label: '外加剂1',
                prop: 'F_Admixture1ActualValue',
                warnNum: "F_Admixture1WarningLevel",

                minWidth: '60px',
                align: "center"
            },
            {
                label: '外加剂2',
                prop: 'F_Admixture2ActualValue',
                warnNum: "F_Admixture2WarningLevel",

                minWidth: '60px',
                align: "center"
            },


            {
                label: '出料时间',
                prop: 'F_DischargeDates',
                minWidth: '140px',
                align: "center"
            },
            {
                label: '实际方量(m³)',
                prop: 'F_ActualCalculation',
                minWidth: '80px',
                align: "center"
            },

        ],
        isCheckBox: false,
        isIndex: true,
        isOperation: true,
        // 表格操作列
        operation: {
            label: '操作',
            width: '100',
            detail: true,
            cols: []
        },
    },
    table_config1: {
        imgKeyWord: "url",
        fileKeyWord: "url",
        fileName: "fFileName",
        dialogHeight: '',
        thead: [{
                label: '生产任务单号',
                prop: 'F_ProduceTaskNumber',
                minWidth: '140px',
                align: "left"

            },
            {
                label: '标段名称',
                prop: 'F_CompanyName',
                minWidth: '100px',
                align: "left"
            },
            {
                label: '工程名称',
                prop: 'F_EngineeringName',
                minWidth: '120px',
                align: "left"
            },
            {
                label: '工程部位',
                prop: 'F_EngineeringPartName',
                minWidth: '130px',
                align: "left"
            },
            {
                label: '拌合站名称',
                prop: 'F_StationName',
                minWidth: '110px',
                align: "center"
            },
            {
                label: '拌合站',
                prop: 'F_StationId',
                minWidth: '130px',
                align: "center"
            },

            {
                label: '拌合机',
                prop: 'F_MachineId',
                minWidth: '145px',
                align: "center"
            },

            {
                label: '实际方量(m³)',
                prop: 'F_ActualCalculation',
                minWidth: '100px',
                align: "center"
            },
            {
                label: '设计方量(m³)',
                prop: 'F_DesignCalculation',
                minWidth: '100px',
                align: "center"
            },
            {
                label: '方量偏差(%)',
                prop: 'F_DeviateCalculation',
                minWidth: '90px',
                align: "center"
            },
            // 
            {
                label: '强度等级',
                prop: 'F_StrengthGrade',
                minWidth: '70px',
                align: "center"
            },

            // {
            //     label: '预警级别',
            //     prop: 'F_WarningLevel',
            //     minWidth: '100px',
            //     filter: true,
            //     btn: true,
            //     align: "center",
            //     colorName: '',
            //     callback: (rowData) => {
            //         let data = statusType[rowData.F_WarningLevel]
            //         if (data) {

            //             return data.label
            //         }
            //     },
            //     specialClass: (rowData) => {
            //         let data = statusType[rowData.F_WarningLevel]
            //         if (data) {
            //             return data.className
            //         }
            //     }
            // },
            {
                label: '出料时间',
                prop: 'F_DischargeDates',
                minWidth: '140px',
                align: "center"
            },
            
        ],
        isCheckBox: false,
        isIndex: true,
        isOperation: true,
        // 表格操作列
        operation: {
            label: '操作',
            width: '60',
            detail: true,
            cols: [
                // {
                //     label: '查看',
                //     type: 'primary',
                //     handleRow: this.handleRow
                // },

            ]
        },
    },
}